﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EssentialWebFramework.Models.LogModels
{
    /// <summary>
    /// 访问日志
    /// </summary>
    public class LogBusinessException
    {
        /// <summary>
        /// 自增 id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        /// <summary>
        /// 用户 id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 异常简述
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorMsg { get; set; }
        /// <summary>
        /// 调用堆栈
        /// </summary>
        public string ErrorStackTrace { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
